package com.example.springboot.mapper;

import com.example.springboot.entity.TruckOrder;
import com.example.springboot.entity.TruckOrderExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TruckOrderMapper {
    long countByExample(TruckOrderExample example);

    int deleteByExample(TruckOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TruckOrder record);

    int insertSelective(TruckOrder record);

    List<TruckOrder> selectByExample(TruckOrderExample example);

    TruckOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TruckOrder record, @Param("example") TruckOrderExample example);

    int updateByExample(@Param("record") TruckOrder record, @Param("example") TruckOrderExample example);

    int updateByPrimaryKeySelective(TruckOrder record);

    int updateByPrimaryKey(TruckOrder record);

    long sumTAmountByExample(TruckOrderExample example);

    Integer countCurrentMonth();
}